﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CitizenDiary.Sync.Contract
{
    [DataContract]
    public enum SynchronizationType : int
    {
        // no need to do anything
        [EnumMember]
        Ignore = 0,

        // conflict between server and device
        // after device decision the data type could be changed to:
        // - post (use local version)
        // - get (use server version)
        [EnumMember]
        Conflict = 1,

        // update to server
        [EnumMember]
        Post = 2,

        // insert to server
        [EnumMember]
        Put = 3,

        // insert or update to local
        [EnumMember]
        Get = 4,

        // there is no delete since we treat delete as post or update by modifying its 'IsDeleted' field
    }
}
